<<<<<<< HEAD
package com.wyz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wyz.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author wk
 * @desc
 * @date 2024/12/23 11:45
 */
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {
    @Select("SELECT * FROM t_user WHERE user_account = #{userAccount}")
    UserEntity selectUserByUserAccount(String userAccount);
    @Select("SELECT * FROM t_user ")
    IPage<UserEntity> selectUser(IPage<UserEntity> page);

    @Select("SELECT * FROM t_user WHERE user_account = #{userAccount}")
    UserEntity findByUserAccount(@Param("userAccount") String userAccount);

    @Update("UPDATE t_user SET user_password = #{userPassword} WHERE user_email = #{userEmail}")
    void updateByUserEmail(UserEntity user);
    //int updateByUserEmail(@Param("userEmail") String userEmail, @Param("password") String password);


    //void updateByUserEmail(UserEntity user);

}
=======
package com.wyz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyz.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author wk
 * @desc
 * @date 2024/12/23 11:45
 */
@Mapper
public interface UserMapper extends BaseMapper<UserEntity> {

}
>>>>>>> be516e15a35375b38cf973b1ce88c92dd1ceba03
